package com.pmh.hrs.sys.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.pmh.hrs.dao.mybatis.HrsAbstractDAO;
import com.pmh.hrs.sys.vo.SysRoleVO;

@Repository
public class SysRoleDAO extends HrsAbstractDAO{
	public int insert(SysRoleVO sysRoleVO) throws Exception{
		return this.getSqlSession().insert("SysRole.insert",sysRoleVO);
	}
	
	public int update(SysRoleVO sysRoleVO) throws Exception{
		return this.getSqlSession().update("SysRole.update",sysRoleVO);	
	}
	
	public int delete(Map<String,Object> paramMap) throws Exception{
		return this.getSqlSession().delete("SysRole.delete",paramMap);	
	}
	
	public List<Map<String,Object>> selectList(Map<String,Object> paramMap) throws Exception{
		return this.getSqlSession().selectList("SysRole.selectList",paramMap);
	}
}
